Variables and Constants

Introduction

In arithmetic, you work mostly with specific numbers like $3$, $12$, or $100$.
In algebra, we often don’t know a number yet — but we still want to talk about it, reason about it, or compute with it.
To do this, we use letters.

This article introduces:

Why Use Letters in Mathematics?

Letters allow us to:

Examples:

Letters make ideas shorter, clearer, and more flexible.

Variables

A variable is a letter that stands for a number that can change or is unknown.

Common variable letters:

Key ideas:

Examples:

Constants

A constant is a number that does not change.

Examples:

Key points:

Combining Variables and Constants

When we combine variables and constants using arithmetic operations, we create algebraic expressions.

Examples:

Important notes:

Simple Examples

Here are some everyday situations and how variables help describe them:

SituationExpressionExplanation
A number increased by $2$$x + 2$$x$ stands for the number
The total cost of $n$ apples at £3 each$3n$Multiply price by quantity
A temperature $t$ degrees warmer than $5$$t + 5$$t$ is the unknown temperature
Half of a number $k$$\frac{k}{2}$Divide by $2$

Exercises

  1. Write “a number increased by $4$” using a variable.

    Solution

    “A number increased by $4$” → $x + 4$
    We use $x$ to represent the unknown number.
  2. If $n$ is the number of books you buy, and each book costs £6, write an expression for the total cost.

    Solution

    Total cost for $n$ books at £6 each → $6n$
    Multiply price by quantity.
  3. Write an expression for “twice a number minus $3$”.

    Solution

    “Twice a number minus $3$” → $2x - 3$
    Twice a number is $2x$.
  4. If $t$ represents time in minutes, write an expression for “$5$ minutes more than $t$”.

    Solution

    “$5$ minutes more than $t$” → $t + 5$
    Add $5$ to the variable.
  5. A rectangle has width $w$. Write an expression for its perimeter if the length is $10$.

    Solution

    Perimeter of rectangle with width $w$ and length $10$ → $2w + 20$
    Perimeter is $2(\text{width}) + 2(\text{length})$.
  6. Write an expression for “half of a number $k$ plus $1$”.

    Solution

    “Half of $k$ plus $1$” → $\frac{k}{2} + 1$
    Half of $k$ is $\frac{k}{2}$.
  7. If $m$ is the number of miles you walk, and each mile burns $80$ calories, write an expression for total calories burned.

    Solution

    Calories burned walking $m$ miles at $80$ calories per mile → $80m$
    Multiply calories per mile by miles walked.
  8. Write “a number decreased by $9$” using a variable.

    Solution

    “A number decreased by $9$” → $x - 9$
    Subtract $9$ from the variable.